Skip to content

Add BCh, BChir, BMBCh, Nigerian and Hong Kong post-nominals as credentials, and German aus as a particle (#1361, #1228, #1182, #1284) - #1510

Merged
derek73 merged 5 commits into
masterfrom
feat/credentials-and-aus-1361-1228-1182-1284
Nov 21, 2026
Merged

derek73 merged 5 commits into
masterfrom
feat/credentials-and-aus-1361-1228-1182-1284

Conversation

@derek73

@derek73 derek73 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Closes #1361
Closes #1182
Closes #1284
Relates to #1228, which stays open for SAN.

Vocabulary only, decided 2026-11-20 from the group 3 triage: fourteen credentials in en.toml (three degrees, six Nigerian marks, five honours) and German aus in de.toml.

Jane Doe, BCh                    → suffix 'BCh'                 (1.4.0–3.1.0: given 'BCh', family 'Jane Doe')
Jane Doe BMBCh                   → suffix 'BMBCh'               (1.4.0–3.1.0: family 'BMBCh')
Jane Doe, BChir                  → suffix 'BChir', reported     (1.4.0–3.1.0: given 'BChir')
Dr. Ahmed Abubakar Audi, mni     → family 'Audi', suffix 'mni'  (3.1.0: given 'mni', family 'Ahmed Abubakar Audi')
Hon WONG Kwok-kin GBS JP         → family 'Kwok-kin', suffix 'GBS JP'  (1.4.0–3.1.0: family 'GBS')
Karen aus der Fünten             → family 'aus der Fünten'      (1.4.0–3.1.0: middle 'aus')

The words

#1361

#1228

  • mni, fwc, fsi, fnse, psc, ndc: listed, all but psc with lower-case masks. psc has none, because PSC's 4 filers surnamed Psc make it a surname a mask would repair in every role, so it repairs like any credential (ali bello, psc → Ali Bello, PSC). Case repair keeps the other five lower case in a mixed-case name, in an all-capitals name (JANE DOE, MNI → Jane Doe, mni) and under force=True (Jane Doe, MNI → Jane Doe, mni).
  • SAN: deferred to a Nigerian English language choice. As a default it costs 17 family names written in capitals, so en.toml records an exclusion with the reason, and Read SAN (Senior Advocate of Nigeria) as a post-nominal under a Nigerian English choice (Babatunde Raji Fashola, SAN gives given SAN) #1228 stays open for it.

#1182

#1284

Accepted costs

Each is recorded in its decisions entry and on the word:

  • Glued initials after a one-word family and a comma read as the credential they spell, losing the given name (Bello, MNI, Chan, GBS). This is how Smith, MD already reads (rules/C13). The local corpora hold none.
  • The lower-case masks apply in every role, so a name written that way is repaired to lower case:
    • RAM MNI GURUNG → Ram mni Gurung; Nepal's candidates hold 1 Mni;
    • such a word reads as the credential wherever an unambiguous one does: Gurung, Mni and Gurung, Mni Ram read it as the suffix, and Ram Bahadur Mni reads suffix 'Mni', with no report.
  • BCHIR in capitals ending a mixed-case name reads as the credential (Amani BCHIR, reported). No corpus name writes it that way.
  • MH and SC without a comma read as the family (Hon WONG Kwok-kin MH JP → family 'MH'). This is the comma-less LegCo shape, accepted with the decline.
  • Aus after the head of a name starts the family (Kevin Aus Smith → family 'Aus Smith'), and after a family comma it joins the family (Rahman, Mohammed Aus). Case repair also writes it lower case in an all-capitals name. None of the 24 corpus names holding the word takes either shape.

Measured

2026-11-20, against a checkout of master 0d8c6fa8:

  • snapshot.py --local SOURCE --base:
    • ctgov-officials: 322 entries move. None empties a given or family name or shortens a suffix. Every move grows the suffix or drops MB BCh's report.
    • govuk-people: 1, a report only.
    • fec-individuals: 2. MURPHY, MARK T. BCH, FACC is fixed, and J AUS, JENNIFER changes only its case repair, Jennifer J aus.
  • local_agreement.py --base:
    • orcid-researchers: 2 fixed, 0 broken (an , mni and an aus der).
    • psc-individuals: 1 fixed, and 1 company name changed.
  • The committed snapshot: the Hong Kong lines, Jane Doe, BM, BCh, PhD and KAREN AUS DER FÜNTEN move, plus the new rules examples. It is re-recorded for these intended moves only; the shared local records are untouched.
  • The grid: every word in every spelling (dotted, bare, lower case, capitals, Title case), the four comma shapes, the citation shapes, all three orders, and Parser().capitalized() with and without force.

Changes

  • en.toml and de.toml, with the compiled vocabulary rebuilt.
  • tests/v2/cases.py rows; test_render.py's R12 grid; the two sweep counts in test_cases.py, re-taken.
  • rules/R12's and rules/O9's examples, which used aus der and GBS as unlisted words.
  • decisions/S12, suffix-acronym-collisions, vocabulary-collisions and R12.
  • Two release-log bullets, the snapshot and the rules corpus.

After the merge decision (2026-11-20)

psc's mask was dropped in 79d43e2d; nothing else moved, and the snapshot is unchanged.

Checks

All pass:

  • the full suite, with and without the ja extra, and on 3.15 in its own environment;
  • -m serial;
  • ruff and mypy;
  • build.py --check;
  • the Sphinx doctest build and the README doctest;
  • parity_check.py: 0 of 750 parity rows differ from 1.4.0.

Two recorded sweep counts in test_cases.py moved with the new rows: claims 2242 → 2257, and the alternative sweep (617, 509) → (620, 512).

Reviews

  • Code and vocabulary review (pr-review-toolkit code-reviewer). It found:
    • three examples or rows that used aus der, GBS and BCh as unlisted words: rules/R12, rules/O9, and the render test and C2 case row;
    • the sweep counts;
    • two wrong release histories in case notes;
    • the lower-case masks reaching a name (mni);
    • accepted costs stated narrower than the parse.
  • Design-docs review. It found:
    • MH/SC "already read before JP" holding only after a comma;
    • C16 cited where C13 governs;
    • decisions/R12's superseded cost left unmarked;
    • a missing headline, a missing Standing line and missing recipes.
  • Second-round review of the fix commit. It found:
    • a Standing line in decisions/R12 still quoting the old output;
    • the aus Standing line narrower than its entry, and its family-first mirror (Rahman Mohammed Aus);
    • the credentials' cost missing Gurung, Mni Ram and Ram Bahadur Mni;
    • a recipe that could not be built (may_be_given is not a preposition property);
    • a report wrongly credited to master.

All fixed.

🤖 Generated with Claude Code

derek73 and others added 4 commits November 20, 2026 19:28
…as credentials (#1361, #1228, #1182)

en.toml lists bch (cased BCh, lifting #1131's exclusion, since chb's
concern does not carry over with mb listed) and bmbch (cased BMBCh);
bchir with a family reading, the surname Bchir, so it is gated; the
Nigerian marks mni, fwc, fsi, fnse, psc and ndc with lower-case masks;
and the honours gbm, gbs, sbs, bbs and bbm. mh and sc are excluded
(324 moves, mostly initials) and san waits for a Nigerian English
choice. decisions/S12 and decisions/suffix-acronym-collisions record
the reasons, the measurement and the accepted costs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
de.toml lists aus as a preposition, on by default like auf, beside a
given reading for the Arabic and Indonesian given name Aus, which keeps
the word positional where it opens a name (Aus Rahman, reported);
may_be_given = false folded 6 corpus names whole into the family.
rules/R12's Accepted bullet takes unter der as its example, aus der
now reading its particle. decisions/vocabulary-collisions records the
measurement and the accepted cost (Kevin Aus Smith).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…entials and aus

The rules examples and the render test that used aus der and GBS as
unlisted words take unter der and MH; the case row pinning C2's flag on
an unlisted part writes Xq, the BCh spelling getting a row of its own;
the sweep counts are re-taken. The decisions entries state the widest
form of each accepted cost (aus after the head and in case repair, the
lower-case masks on a name, MH and SC with no comma), cite C13 for
Bello, MNI, supersede decisions/R12's aus der cost, and give recipes;
two case notes correct their release history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The second review of the fix commit: decisions/R12's Standing line takes
unter der; the aus Standing line and entry name every shape it reaches
(after the head, the comma part, its FAMILY_FIRST writing, case
repair); the credentials' cost names a word that is also a name wherever
it reads as the credential (Gurung, Mni Ram; Ram Bahadur Mni); the aus
recipe removes the given reading, a buildable lexicon; Jane Doe BChir's
report is new, not master's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 21, 2026
@derek73 derek73 added vocabulary Fixed by a word-list entry: per-word vocabulary and language packs particles Particles and surname prefixes (rules/P) suffixes Generational suffixes and credentials (rules/S) labels Nov 21, 2026
@derek73 derek73 self-assigned this Nov 21, 2026
PSC's four filers surnamed Psc make psc a name a lower-case mask would
repair in every role, so it repairs as an unmasked credential does; the
other five Nigerian marks keep theirs. The decisions entry counts the
batch as fourteen credentials, which it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73
derek73 merged commit 3ca31c2 into master Nov 21, 2026
14 checks passed
@derek73
derek73 deleted the feat/credentials-and-aus-1361-1228-1182-1284 branch November 21, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

particles Particles and surname prefixes (rules/P) suffixes Generational suffixes and credentials (rules/S) vocabulary Fixed by a word-list entry: per-word vocabulary and language packs

Projects

None yet

1 participant